<?php

$this->Html->script('controllers/Workstations/admin.js?1', array('block' => 'scriptBottom'));
$appBosch->crud = $this->TioCachas->urlsCRUD($appBosch->lineId);
$appBosch->urlConfig = $this->Html->url(array('controller' => 'WorkstationsConfigs', 'action' => 'admin'));
$appBosch->upload = $this->Html->url(array('action' => 'uploadFiles'));
$appBosch->cancel = $this->Html->url(array('action' => 'deletedUploaded'));
$this->TioCachas->addWarning();
$this->TioCachas->back(array('controller'=>'Lines','action'=>'admin', $appBosch->areaId, $appBosch->moeId));
?>
<script type="text/x-kendo-template" id="templateToolbar">
    <div class="toolbar">
    <span class="pull-left">
    <a class="k-button k-button-icontext k-grid-add" href="">
    <span class="k-icon k-add"></span>
        Agregar Operación
    </a>
    </span>
    </div>
</script>

<script id="fileTemplate" type="text/x-kendo-template">
    <div>
        <p>#=name#</p>
        <button type='button' class='k-upload-action fa fa-times' style='position: absolute; top: 0; right: 0; height: 15px; width: 15px; color: \#ffffff;'>X</button>
    </div>
</script>

<div id="grid"></div>
<?php $this->start('jsVars'); ?>
<script type="text/javascript">
    var appBosch = <?php echo json_encode($appBosch); ?>;
</script>
<?php $this->end();